public class Counter {
  public static void main(String [] args) throws Exception {
    for (int i=0; i<10; i++) {
      System.out.println(i);
      Thread.sleep(500);
    }
  }
}